`ifndef PRINT_SVH
`define PRINT_SVH

class print;
	static bit [31:0] error_count = 0, error_limit = -1;
	
	virtual function void error(input string ID, input string message);
		$display("@%0t [%s] %s", $time, ID, message);
		if (++error_count >= error_limit) begin
			$fatal("fatal: Maxium error limit reached");
		end
	endfunction
endclass

`endif
